package com.jt.dao;

import com.jt.entity.Course;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CourseMapper {

    Course queryById(Integer id);//

    Integer save(Course course);

    Integer updateStatus(Course course);

    List<Course> queryByName(String sname);

    Integer delete(@Param("id") Integer id,@Param("status") Integer status);

    Integer add(Course course);

    Integer update(Course course);
}
